package com.api.user.service;
import com.api.user.model.TeamUser;
import com.api.core.service.Service;
import com.api.core.response.Result;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghuiwen on 2021/03/27.
 */
public interface TeamUserService extends Service<TeamUser> {
   Result list(String search, String order, Integer page, Integer size);
   Result applications(Long teamId, String order, Integer page, Integer size);
   Result users(Long teamId, String order, Integer page, Integer size);
   Result invite(Long teamId,String userIds);
   Result moveOut(Long teamId,String userIds);
   Result join(Long teamId,Long userId);
   Result decision(TeamUser teamUser);
   TeamUser getByTeamIdAndUserId(Long teamId,Long userId);

   List<Map<String, Object>> getByUserId(Long userId);
}
